<?php
namespace app\common\model\mysql;

use think\Model;

class Admin extends Model {
    public function getAdminByRoleId($roleId, $limit = 10) {
        $results = $this->where('role_id', $roleId)
            ->limit($limit)
            ->order('id', 'desc')
            ->select()
            ->toArray();
        return $results;
    }
}